<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        
        function Parent (name,date){
            this.name = name
            this.date = date
        }
        
        Parent.prototype.showMe=function(){
            console.log('我是'+this.name+'我的出生日期是'+this.date);
            
        }
        // 构造函数
        var son1 = new Parent('二狗','2020/07/07')
        var son2 = new Parent('三胖','2020/10/10')

        son1.showMe()
        son2.showMe()
    </script>
</body>
</html>